package com.yml.mybatis.gererator.config;

/**
 * 实体类配置
 *
 * @author YML
 * @since 2023-07-20 10:52
 */
public class MapperConfig {

    /** mapper包名 **/
    private String mapperPackage = "mapper";

    /** xml包名 **/
    private String mapperXmlPackage = "mapper";

    /** mapper名称格式化 **/
    private String mapperFormat = "%sMapper";

    /** 是否使用selective **/
    private boolean enableSelective = false;

    public String getMapperPackage() {
        return mapperPackage;
    }

    public MapperConfig setMapperPackage(String mapperPackage) {
        this.mapperPackage = mapperPackage;
        return this;
    }

    public String getMapperXmlPackage() {
        return mapperXmlPackage;
    }

    public MapperConfig setMapperXmlPackage(String mapperXmlPackage) {
        this.mapperXmlPackage = mapperXmlPackage;
        return this;
    }

    public String getMapperFormat() {
        return mapperFormat;
    }

    public MapperConfig setMapperFormat(String mapperFormat) {
        this.mapperFormat = mapperFormat;
        return this;
    }

    public boolean isEnableSelective() {
        return enableSelective;
    }

    public MapperConfig setEnableSelective(boolean enableSelective) {
        this.enableSelective = enableSelective;
        return this;
    }
}
